characterstic root method to solve recurrence relation